package cn.ipenta.config;

/**
 * @author ipenta
 * @ClassName: ResultStatus
 * @Description: TODO
 * @date 2017-09-27 下午1:10
 */
public enum ResultStatus {
	SUCCESS(100, "成功"),
	USERNAME_OR_PASSWORD_ERROR(-1001, "用户名或密码错误"),
	USERNAME_REGISTERED(-1002,"用户名已经注册"),
	USER_REGISTER_FAIL(-1003,"用户注册失败"),
	USER_NOT_FOUND(-1004, "用户不存在"),
	USER_NOT_LOGIN(-1005, "用户未登录"),
	PASSWORD_UNCHECK(-1006,"重输密码匹配");

	/**
	 * 返回码
	 */
	private int code;

	/**
	 * 返回结果描述
	 */
	private String message;

	ResultStatus(int code, String message) {
		this.code = code;
		this.message = message;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
}

